package com.qixin.api.mapper;

import com.qixin.api.bean.ComCar;
import com.qixin.api.bean.ComPeople;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qixin.api.bean.ComPtUser;
import com.qixin.api.bean.ZtreeBean;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author 薛向毅
 * @since 2018-09-28
 */
public interface ComPeopleMapper extends BaseMapper<ComPeople> {
    Integer selectMyCount(@Param("map") Map map);
    List<ComPeople> selectMyPage(@Param("map") Map map);
    Integer countMyPage(@Param("map")  Map map);
    List<ComPeople> selectALL(@Param("map") Map map);
    List<ComPeople> selectphone(@Param("map") Map map);
    Integer countMyPageq(@Param("map")  Map map);
    List<ZtreeBean> findPtZtree(@Param("ptName")String ptName, @Param("id")Long id);
    List<ComPeople> selectMyPageForPt(@Param("map")Map map, @Param("id")Long id);
    int countMyPageForPt( @Param("map")Map map,@Param("id")Long id);
    /**
     * 微信公众号 调用  充电结束后 扣除对应金额
     * @param userId  用户ID
     * @param moeny 扣除的金额
     * @return
     */
    int removeMoenyForWeChat(@Param("userId") Long userId, @Param("moeny")BigDecimal moeny);

    String phonea( @Param("id")Long id)  ;

    String phoneb( @Param("id")Long id)  ;
    //个人忘记密码
	int updatePeople(@Param("param") ComPeople comPeople);
}